import request from '@/utils/request'
function getUrl(url) { return '/api/' + url }

//获取任务类型列表
export function listTaskType(data) {
    return request({
        url: getUrl("admin/taskType/list"),
        method: 'post',
        data
    })
}

//添加任务类型
export function addTaskType(data) {
    return request({
        url: getUrl("admin/taskType/add"),
        method: 'post',
        data
    })
}

//更新任务类型
export function editTaskType(data) {
    return request({
        url: getUrl("admin/taskType/edit"),
        method: 'post',
        data
    })
}

//删除任务类型
export function delTaskType(data) {
    return request({
        url: getUrl("admin/taskType/del"),
        method: 'post',
        data
    })
}
